#include <iostream>
#include "User.h"
#include "UserManage.h"
#include "MyUI.h"
#include "Finance.h"
#include "FinanceManage.h"
#include <time.h>

using namespace std;

int main()
{
        system("title 姓名:陈劲豪 学号:201627010605");
        FinanceManage * financeManage = new FinanceManage("financeFile.txt");
        FinanceManage * applyFinanceManage = new FinanceManage("applyFinanceFile.txt");
        FinanceManage * acceptedList = new FinanceManage("acceptedList.txt");
        UserManage * userManage = new UserManage;


        MyUI myUI(userManage, financeManage, applyFinanceManage,acceptedList);

        int UIid = myUI.UIdispatcher(LOGIN);
        while (UIid != INT_MIN)
        {
                UIid = myUI.UIdispatcher(UIid);
        }

        return 0;
}
